Ext.define('Jee.view.security.user.UserEditView',{
    extend: 'Jee.view.EditView',
    alias : ['userEditView'],
    id:'userEditView',
    title : '用户',
    width:500,
    modal: true,
    initComponent : function(){
	  this.items = [
            {
                xtype: 'form',
                padding: '5 5 0 5',
                border: false,
                //style: 'background-color: #fff;',

                items: [
                	{
                        xtype: 'hidden',
                        name : 'id'
                    },
                    {
                        xtype: 'textfield',
                        name : 'userName',
                        fieldLabel: '用户名',
                        allowBlank:false,
                        maxLength:32
                    },
                    {
                        xtype: 'textfield',
                        name : 'password',
                        fieldLabel: '密码'
                    },
                    {
                        xtype: 'textfield',
                        name : 'realName',
                        fieldLabel: '姓名'
                    },
                     {
                        xtype: 'checkbox',
                        name : 'enabled',
                        inputValue:true,
                        fieldLabel: '是否激活'
                    },
                    {
                        xtype: 'textfield',
                        name : 'org.name',
                        fieldLabel: '部门'
                    },
                     {
                        xtype: 'textfield',
                        name : '',
                        fieldLabel: '岗位'
                    },
		            {
		            xtype: 'fieldset',
		            flex: 1,
		            title: '角色',
		            items:[
		            	Ext.create('Ext.tree.Panel', {
					        //store: store,
					        rootVisible: false,
					        useArrows: true,
					        //frame: true,
					        width: 200,
					        height: 100
				    })
		            ]}
                ]
            }
        ];
    	this.callParent();
    }
});